package test0103.test02;

public class Position {
    int id;
    String name;
    Employee[]arr=new Employee[2];
    int i =0;


    public Position() {
    }

    public Position(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Position{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public void addEmployee(Employee zhangSan) {
        arr[i]=zhangSan;
        i++;
    }
}
